package br.mikhas.db.model.factory;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Defines the length of a String field
 * 
 * @author Mikhail Domanoski
 * 
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Length {
	/**
	 * The string field max length.
	 * <p>
	 * If string length is bigger, it will trunkate
	 * 
	 * @return max length
	 */
	int value();
}
